package com.fishery.base.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.base.entity.GermchitOrder;
import com.fishery.base.entity.vo.GermchitOrderShowVo;

import javax.servlet.http.HttpServletResponse;

public interface GermchitOrderService extends IService<GermchitOrder> {
	/**
	 * 将种苗订单状态修改已送达状态
	 *
	 * @param orderId
	 * @return
	 */
	boolean updateOrderStatus(String orderId);

	/**
	 * 分页获取基地的种苗订单
	 *
	 * @param baseId
	 * @param size
	 * @param current
	 * @return
	 */
	Page<GermchitOrderShowVo> pageOrders(String baseId, int size, int current);

	/**
	 * 通过订单id获取种苗订单信息
	 *
	 * @param orderId
	 * @return
	 */
	GermchitOrderShowVo getGermchitOrderShowVoById(String orderId);

	/**
	 * 将基地的订单以excel文件格式导出
	 *
	 * @param response
	 * @param baseId
	 * @return
	 */
	void getGermchitOrdersDataByExcel(HttpServletResponse response, String baseId);
}
